public class code {
    public static void main(String[] args) {
         int a = 5;
         int b = 10;
         int c =max(a,b);
        System.out.println(c);
        double x = 100.2;
        double y = 10.2;
        double z = 5.5;
        double sz = max(x,y,z);
        System.out.println(sz);
    }

    public static int max (int a ,int b){
        if(a > b) {
            return a;
        }else{
            return b;
        }

    }
    public static  double max (double a ,double b ,double c){
      if(a < b){
          double temp = b;
          b = a;
          a = temp;
      }
      if(a < c){
          double temp = c;
          c = a;
          a = temp;
      }
      if(b < c){
          double temp = c;
          c = b;
          b = temp;
      }
      return a;
    }
}
